import request from '@/utils/request'

// 查询看板列的显示数据 历史列表
export function listKanBanDataHistory(query) {
  return request({
    url: '/history/kanBanDataHistory/list',
    method: 'get',
    params: query
  })
}

export function listKanBanDataStatistics(query) {
  return request({
    url: '/history/kanBanDataHistory/statistics/list',
    method: 'get',
    params: query
  })
}

export function listMouthStatistics(query) {
  return request({
    url: '/history/kanBanDataHistory/statistics/mouth/list',
    method: 'get',
    params: query
  })
}

// 查询看板列的显示数据 历史详细
export function getKanBanDataHistory(id) {
  return request({
    url: '/history/kanBanDataHistory/' + id,
    method: 'get'
  })
}

// 新增看板列的显示数据 历史
export function addKanBanDataHistory(data) {
  return request({
    url: '/history/kanBanDataHistory',
    method: 'post',
    data: data
  })
}

// 修改看板列的显示数据 历史
export function updateKanBanDataHistory(data) {
  return request({
    url: '/history/kanBanDataHistory',
    method: 'put',
    data: data
  })
}

// 删除看板列的显示数据 历史
export function delKanBanDataHistory(id) {
  return request({
    url: '/history/kanBanDataHistory/' + id,
    method: 'delete'
  })
}

// 导出看板列的显示数据 历史
export function exportKanBanDataHistory(query) {
  return request({
    url: '/history/kanBanDataHistory/export',
    method: 'get',
    params: query
  })
}
